home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
tjockdem.arc
/
DEMO4.ARC
/
READDEM2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-02-03
|
1KB
|
48 lines
Program ReadTTT5_Demo_2;
uses DOS, CRT, FastTTT5, KeyTTT5, READTTT5;
var
User_Input : strScreen;
OK : boolean;
W : word;
I : integer;
Choice : byte;
begin
ClrScr;
KTTT.Click := true; {let the keyboard click after every keypress}
With RTTT do
begin
RightJustify := true;
EraseDefault := true;
AllowNull := true;
SuppressZero := true;
end;
User_Input := 'Bob Ainsbury';
Repeat
Read_String(10,5,30,'^ Enter your name ',1,User_Input);
OK := true;
Read_YN(10,7,'Entered OK? ',0,OK);
ClearLine(7,white,black)
Until OK;
User_Input := '';
Read_Password(10,8,30,'Enter your password ===> ',0,User_Input);
W := 20000;
Read_Word(10,10,5,'How much salary do you want? $',0,W,0,25000);
I := 0;
Read_Int( 10,12,5,'What bonus do you expect? $',0,I,-1000,1000);
Choice := 3;
Read_select(10,14,'Enter action> ','Update View Save_&_Quit List Print',Choice);
Choice := 1;
Read_Select(10,16,'Was this fun? ','^Yes No It_was_OK',choice);
If Choice = 2 then
begin
Fastwrite(11,17,lightred,'Screw you!');
delay(500); {quick flash}
end;
clrscr;
WriteAT(1,1,white,black,'Run DemoTTT.exe for the main demo program');
WriteAT(1,2,white,black,'TechnoJock''s Turbo Toolkit v5.0');
GotoXY(1,5);
end.